
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:test01/pages/travel_info/travel_content.dart';

class TravelScreen extends StatelessWidget {
  var arguments;
  TravelScreen(this.arguments, {Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        centerTitle: true,
        elevation: 0,
        leading: IconButton(
            onPressed: () {Navigator.pop(context);},
            icon: Icon(Icons.arrow_back_ios,color: Colors.black87,size: 40.w,)
        ),
        backgroundColor: Colors.white,
        title: Container(
          height: 56.h,
          child: Text(arguments["classify"] == 0?"景区详情": "景点详情", style: TextStyle(fontSize:30.w, color: Colors.black87),)
        ),
      ),
      body: TravelContent(arguments),
    );
  }
}
